<%--
  Created by IntelliJ IDEA.
  User: 杨大贵
  Date: 2024/4/11
  Time: 19:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 600px;
            margin: 20px auto;
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        h2 {
            text-align: center;
            color: #333;
        }

        label {
            font-weight: bold;
        }

        input[type="text"],
        input[type="password"],
        textarea,
        select {
            width: 100%;
            padding: 10px;
            margin: 5px 0 20px 0;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        input[type="radio"],
        input[type="checkbox"] {
            margin-right: 5px;
        }

        input[type="submit"] {
            background-color: #4CAF50;
            color: white;
            padding: 14px 20px;
            margin: 8px 0;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            width: 100%;
        }

        input[type="submit"]:hover {
            background-color: #45a049;
        }

        .gender-label {
            margin-right: 15px;
        }

        .checkbox-label {
            margin-bottom: 15px;
        }
    </style>
</head>
<body>
<div class="container">
    <h2>用户注册</h2>
    <form action="processForm.jsp" method="post">
        <label for="username">用户名：</label>
        <input type="text" id="username" name="username">

        <label for="password">密码：</label>
        <input type="password" id="password" name="password">

        <label for="bio">个人简介：</label><br>
        <textarea id="bio" name="bio" rows="4" cols="50"></textarea>

        <label>性别：</label>
        <input type="radio" id="genderMale" name="gender" value="male" class="gender-input">
        <label for="genderMale" class="gender-label">男</label>
        <input type="radio" id="genderFemale" name="gender" value="female" class="gender-input">
        <label for="genderFemale" class="gender-label">女</label>

        <div class="checkbox-label">
            <input type="checkbox" id="subscribe" name="subscribe" value="yes">
            <label for="subscribe">订阅此站</label>
        </div>

        <label for="country">国家：</label>
        <select id="country" name="country">
            <option value="china">中国</option>
            <option value="usa">美国</option>
            <option value="uk">英国</option>
            <option value="fra">法国</option>
            <option value="rus">俄罗斯</option>
        </select>

        <label for="interests">兴趣：</label>
        <select id="interests" name="interests" multiple>
            <option value="music">音乐</option>
            <option value="sports">体育</option>
            <option value="movies">电影</option>
            <option value="music">动漫</option>
            <option value="sports">摄影</option>
            <option value="movies">游戏</option>
            <option value="music">阅读</option>
            <option value="sports">学习</option>
            <option value="movies">茶艺</option>
        </select>

        <input type="submit" value="提交">
    </form>
</div>
</body>
</html>
